package show.me.the.money.service.core.event.test.tr;

import java.util.HashMap;

import show.me.the.money.dao.SimpleDAO;
import show.me.the.money.dao.exception.DataAccessException;
import show.me.the.money.service.dao.DAOSupportService;
import show.me.the.money.util.context.Context;


public class MyBeforeDao extends DAOSupportService {

	@Override
	public void invoke(HashMap<String, Object> req,
			HashMap<String, Object> res, Context ctx, SimpleDAO dao)
			throws DataAccessException {
		HashMap<String, Object> rec = new HashMap<String, Object>();
		rec.put("name", "wuk1");
		dao.create(rec);
		dao.commitTransaction();
	}

}
